<?php 
$object=$this->object;
defined('_JEXEC') or die('Restricted access');
AdminUIHelper::startAdminArea ();
$acid=$this->acid;
?>
<script type="text/javascript">
function limiter(){
	// check can bo blank
	var name= document.adminForm.bl_idcanbo.value;
	if(name=="0") document.getElementById('loicanbo').innerHTML="(!)  Select one.!";
	else  document.getElementById('loicanbo').innerHTML="";
	// check bac luong blank
	var name= document.adminForm.bl_bacluong.value;
	if(name=="") document.getElementById('loibacluong').innerHTML="(!)  Not blank.!";
	else  document.getElementById('loibacluong').innerHTML="";
	// check ten ngach blank
	var diachi= document.adminForm.bl_tenngach.value;
	if(diachi=="") document.getElementById('loitenngach').innerHTML="(!) Not blank.!";
	else  document.getElementById('loitenngach').innerHTML="";
	// check loai ngach
	var diachi= document.adminForm.bl_loaingach.value;
	if(diachi=="") document.getElementById('loiloaingach').innerHTML="(!) Not blank.!";
	else  document.getElementById('loiloaingach').innerHTML="";
			}
</script>
<form name="adminForm" enctype="multipart/form-data" method="post"  onmousemove="limiter()" >
	<input type='hidden' name='task' />
	<input type='hidden' name='add_edit' value='true' />
	<input type='hidden' name='id' value='<?php echo $this->id?>' />
	<input type='hidden' name='bl_id' value='<?php echo $this->id?>' />
	<fieldset>
		<legend><?php echo JText::_('Chi tiết diễn biến lương')?></legend>
		<table class="admintable">
		<?php if($acid==0) { ?>
			<tr>
				<td class="key"><?php echo JText::_('Đơn vị')?></td>
				<td>
					<?php echo $this->list['donvi']; ?>
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo JText::_('Phòng ban')?></td>
				<td>
					<?php echo $this->list['phongban']; ?>
				</td>
			</tr>
			<tr>
				<td class="key">
				<?php echo JText::_('Cán bộ')?>
				</td>
				<td>
					<?php echo $this->list['canbo']; ?>
					<b style="color:red;text-align:center;" id="loicanbo"  ></b>
				</td>
			</tr>
			<?php } else { ?>
						<tr>
				<td class="key">
				<?php echo JText::_('Cán bộ')?>
				</td>
				<td>
				   <input type="hidden" name="bl_idcanbo" value="<?php echo $object->bl_idcanbo; ?>">
					<input type="text" name="idcanbo" value="<?php echo $object->cb_ten; ?>" style="width:250px;" disabled="disabled"> 
					<b style="color:red;text-align:center;" id="loicanbo"  ></b>
				</td>
			</tr>
			<?php }?>
			<tr>
				<td class="key"><?php echo JText::_('Bậc lương')?></td>
				<td>
					<input  onkeyup="limiter()" style="width:250px;" type="text" name="bl_bacluong" value="<?php echo $object->bl_bacluong;?>" />
					<b style="color:red;text-align:center;" id="loibacluong"  ></b>
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo JText::_('Tên ngạch')?></td>
				<td>
					<input  onkeyup="limiter()" style="width:250px;" type="text" name="bl_tenngach" value="<?php echo $object->bl_tenngach;?>" />
					<b style="color:red;text-align:center;" id="loitenngach"  ></b>
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo JText::_('Loại ngạch')?></td>
				<td>
					<input  onkeyup="limiter()" style="width:250px;" type="text" name="bl_loaingach" value="<?php echo $object->bl_loaingach;?>" />
					<b style="color:red;text-align:center;" id="loiloaingach"  ></b>
				</td>
			</tr>
		</table>
	</fieldset>
</form>